package com.atguigu.spring6.validator.four;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;

@Configuration
@ComponentScan("com.atguigu.spring6.validator.four")
public class ValidationConfig {
   @Bean
   public MethodValidationPostProcessor validationPostProcessor(){
       return new MethodValidationPostProcessor();
   }

}
